<?php

class BackendArticlePictureFormFilter extends ArticlePictureFormFilter
{
  public function configure()
  {
    $this->widgetSchema['article'] = new sfWidgetFormInputText();
    $this->validatorSchema['article'] = new sfValidatorPass();
  }
  
  public function addArticleColumnQuery(Doctrine_Query $query, $field, $values)
  {
    $rootAlias = $query->getRootAlias();

    $query->innerJoin("$rootAlias.article a")
      ->addWhere('a.title like ?', "%$values%");
  }
}